﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="FisheryPlatform.Web.WWW.Article.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace="FisheryPlatform.Bussiness.Cache" %>
<%@ Register TagName="Style" TagPrefix="Menu" Src="~/Modules/Menu/StyleMenu.ascx" %>
<%@ Register TagName="PageBar" TagPrefix="ucPB" Src="~/Modules/PageBar.ascx" %>
<%@ Register TagName="SimpleHeader" TagPrefix="Menu" Src="~/Modules/Menu/SimpleHeader.ascx" %>
<%@ Register TagName="Footer" TagPrefix="Menu" Src="~/Modules/Menu/FooterMenu.ascx" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <Menu:Style runat="server" ID="menuStyle" Title=""></Menu:Style>
</head>
<body>
    <div class="wrapper">
        <Menu:SimpleHeader runat="server" ID="menuSimpleHeader" />
        <form id="form1" runat="server">
        <div class="content">
            <div class="left">
                <div class="news_list">
                    <% if (TopList.Count > 0)
                       {%>
                    <div class="news_list_top">
                        <ul>
                            <% foreach (var topItem in TopList)
                               {%>
                            <li><a href="<%=PostStaticHtmlCache.GetFileName(topItem.PostId.ToString(),topItem.PostDate) %>"
                                target="_blank">
                                <%=HttpUtility.HtmlEncode(topItem.Title)%></a>【置顶】</li>
                            <%} %>
                        </ul>
                    </div>
                    <%} %>
                    <ul>
                        <% foreach (var item in ArticleList)
                           { %>
                        <li><a href="<%=PostStaticHtmlCache.GetFileName(item.PostId.ToString(),item.PostDate) %>"
                            target="_blank">
                            <%=HttpUtility.HtmlEncode( item.Title) %></a></li>
                        <%} %>
                    </ul>
                </div>
                <div>
                    <ucPB:PageBar runat="server" ID="pb_PageBar" />
                </div>
            </div>
            <div class="right">
                <div class="col">
                </div>
            </div>
        </div>
        </form>
        <Menu:Footer runat="server" ID="menuFooter" />
    </div>
</body>
</html>
<script type="text/javascript">
    function PageChanged(pageIndex) {
        var params = [];
        params.push("pageIndex=" + pageIndex);
        var url = window.location.pathname + "?" + params.join("&");
        window.location.replace(url);
    }
</script>
